import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-download',
  templateUrl: './download.component.html',
  styleUrls: ['./download.component.less']
})
export class DownloadComponent implements OnInit {

  public isWX = false;
  constructor() { }

  ngOnInit() {
    this.isWeiXin();
  }

  isWeiXin(){
    let ua = window.navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i)){
      this.isWX = true;
    }else{
      this.isWX = false;
    }

  }

  copyText() {

    $("#urllink").select();
    document.execCommand("copy");
    alert("复制成功");
  }


}
